from Finance_fun import page
from Finance_fun.base.base import Base
import time

class PageRemindSetting(Base):
    # 点击提醒设置
    def click_remind_link(self):
        self.base_click(page.remind_setting)

    # 点击站内全选按钮
    def station_all_select(self):
        self.base_click(page.station_all_select)

    # 点击邮件消息全选按钮
    def email_all_select(self):
        self.base_click(page.email_all_select)

    # 点击提交按钮
    def click_confirm_btn(self):
        self.base_click(page.click_confirm_btn)

    # 点击登录链接
    def page_click_login_link(self):
        self.base_click(page.login_link)

    # 输入登录手机号
    def page_input_login_phone(self, phone):
        self.base_input(page.login_phone, phone)

    # 输入登录密码
    def page_input_login_password(self, password):
        self.base_input(page.login_password, password)

    # 点击登录按钮
    def page_click_login_btn(self):
        self.base_click(page.login_btn)

    # 集成登录操作
    def page_login(self, phone, password):
        self.page_input_login_phone(phone)
        self.page_input_login_password(password)
        self.page_click_login_btn()
        time.sleep(1)